<h1>Colors List</h1>

<table>
  <thead>
    <tr>
      <th>Id color</th>
      <th>Nombre</th>
      <th>Eliminar</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($colors as $color): ?>
    <tr>
      <td><a href="<?php echo url_for('colores/show?id_color='.$color->getIdColor()) ?>"><?php echo $color->getIdColor() ?></a></td>
      <td><?php echo $color->getNombre() ?></td>
      <td><?php echo link_to('X', 'colores/delete?id_color='.$color->getIdColor(), array('method' => 'delete', 'confirm' => '&iquest;Est&aacute; seguro?')) ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('colores/new') ?>">New</a>
